package com.leyou.auth.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo {
    private Long id;
    private String username;

    public static void main(String[] args) {
        String tmp="   ";
        boolean empty = StringUtils.isEmpty(tmp);//空 false
        boolean blank = StringUtils.isBlank(tmp);//空白 true
        System.out.println(empty);
        System.out.println(blank);
    }
}